$scriptdir=Split-Path ((Get-Variable MyInvocation -Scope 0).Value).MyCommand.Path
$bindir=(get-item "$scriptdir").Parent.GetDirectories("Bin\Debug")[0].FullName

[Reflection.Assembly]::LoadFile($bindir + '\CabConfigProvisioning.dll') | Out-Null
$a = New-Object CabConfigProvisioning.WspConfigProvisioner ($scriptdir + '\solution.wsp'), ($scriptdir + '\solution-configured.wsp'), ($scriptdir + '\solution.settings')
$a.Execute()

Read-Host "`r`nPress Enter to close this window" | Out-Null
